package com.henu.acmrating.service;

import com.henu.acmrating.dao.ChildCommentMapper;
import com.henu.acmrating.pojo.ChildComment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class ChildCommentService{

    @Resource
    private ChildCommentMapper childCommentMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return childCommentMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(ChildComment record) {
        return childCommentMapper.insert(record);
    }

    
    public int insertOrUpdate(ChildComment record) {
        return childCommentMapper.insertOrUpdate(record);
    }

    
    public int insertOrUpdateSelective(ChildComment record) {
        return childCommentMapper.insertOrUpdateSelective(record);
    }

    
    public int insertSelective(ChildComment record) {
        return childCommentMapper.insertSelective(record);
    }

    
    public ChildComment selectByPrimaryKey(Integer id) {
        return childCommentMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(ChildComment record) {
        return childCommentMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ChildComment record) {
        return childCommentMapper.updateByPrimaryKey(record);
    }

    
    public int updateBatch(List<ChildComment> list) {
        return childCommentMapper.updateBatch(list);
    }

    
    public int batchInsert(List<ChildComment> list) {
        return childCommentMapper.batchInsert(list);
    }

    public List<ChildComment> selectByCommentId(Integer commentId) {
        return childCommentMapper.selectByCommentId(commentId);
    }
}
